﻿using SportsPlatform.BaseModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Model.SportBusiness
{
    /// <summary>
    /// 订单
    /// </summary>
    [Table("T_B_PaymentOrderInfo")]
    public class PaymentOrderInfo : BaseModel
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid EmployeeID { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [MaxLength(11)]
        public string ContactTel { get; set; }
        /// <summary> 
        /// 赛事ID
        /// </summary>
        public Guid CompetitionID { get; set; }

        /// <summary>
        /// 支付费用
        /// </summary>
        public decimal PaymentFee { get; set; }
        /// <summary>
        /// 赛事创建商户
        /// </summary>
        public Guid CompanyID { get; set; }

        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime SubmitTime { get; set; }
        /// <summary>
        /// 支付状态
        /// </summary>
        public int PaymentStatus { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PaymentTime { get; set; }
        /// <summary>
        /// 订单来源
        /// </summary>
        [MaxLength(20)]
        public int OrderSource { get; set; }
        /// <summary>
        /// 订单编号 商户订单单号
        /// </summary>
        [MaxLength(50)]
        public string OrderNumber { get; set; }
        /// <summary>
        /// 订单单号 微信支订单单号
        /// </summary>
        [MaxLength(50)]
        public string OrderOddNumbers { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        public int PaymentMethod { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        public string OrderNotes { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public int OrderStatus { get; set; }
        /// <summary>
        /// 订单关闭原因
        /// </summary>
        [Column(TypeName = "text")]
        public string OrderCloseNotes { get; set; }
    }
}
